package bam.service.impl;

import bam.dao.DealInfoDao;
import bam.entity.Balance;
import bam.entity.Comboinfo;
import bam.entity.Vipmember;
import bam.service.DealInfoService;

public class DealInfoServiceImpl implements DealInfoService {
private DealInfoDao dealInfoDao;
	public Vipmember seluservip(int userid) {
		Vipmember vipmember = null;
		try {
			vipmember = dealInfoDao.seluservip(userid);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return vipmember;
	}

	public Comboinfo selusercombo(int userid) {
		Comboinfo comboinfo = null;
		try {
			comboinfo = dealInfoDao.selusercombo(userid);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return comboinfo;
	}

	public void setDealInfoDao(DealInfoDao dealInfoDao) {
		this.dealInfoDao = dealInfoDao;
	}

	public Balance seluserbal(int userid) throws Exception {
		Balance balance = null;
		try {
			balance = dealInfoDao.seluserbal(userid);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return balance;
	}

}
